package com.example.adminframework.model.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 分组
 */
@ApiModel("分组")
public class GroupBO {
    /**
     * 名称
     */
    @ApiModelProperty("名称")
    private String name;

    /**
     * 时间单位
     */
    @ApiModelProperty("时间单位。根据时间间隔分组统计时使用")
    private String timeUnit;

    /**
     * 时间间隔
     */
    @ApiModelProperty("时间间隔。根据时间间隔分组统计时使用")
    private Integer timeValue;

    public GroupBO() {
    }

    public GroupBO(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTimeUnit() {
        return timeUnit;
    }

    public void setTimeUnit(String timeUnit) {
        this.timeUnit = timeUnit;
    }

    public Integer getTimeValue() {
        return timeValue;
    }

    public void setTimeValue(Integer timeValue) {
        this.timeValue = timeValue;
    }

    @Override
    public String toString() {
        return "GroupBO{" +
                "name='" + name + '\'' +
                ", timeUnit='" + timeUnit + '\'' +
                ", timeValue='" + timeValue + '\'' +
                '}';
    }
}
